# -*- coding: UTF-8 -*-

# @Time : 2020/8/26 14:07 

# @Author : litao

# @File : user.py 
import tornado.web
import tornado.escape

from models import User
from handlers.base import BaseHandler

class UserHandler(BaseHandler):
    @tornado.web.authenticated
    def get(self):
        #username = self.get_argument("user")
        username = tornado.escape.json_decode(self.current_user)
        print(username)
        user = User.objects.filter(username=username)
        self.render("user.html", users = user)